package com.njtoyo.taxi.admin.library.common;

import cn.hutool.core.util.IdUtil;

/**
 * @Author Dell
 * @Date 2019/12/20 15:52
 */
public abstract class NumberGenerator {

    public static final String REFUND_NUMBER = "RE";

    public static String generate(String machineId, String suffix) {
        return machineId + IdUtil.createSnowflake(1L, 1L).nextId() + suffix;
    }

    public static String generate(String machineId) {
        return generate(machineId, "");
    }

}
